<template>
  <div class="page">
    <!-- Header区域 -->
    <Header/>
    <!-- 主体区域 -->
    <el-main class="main container content">
      <!-- 主栏 -->
      <section class="main-content">
        <!-- 面包屑导航区域 -->
        <BreadCrumb/>
        <!-- 内容区域 -->
        <RouterView/>
      </section>
      <!-- 侧边栏 -->
      <SideBar/>

    </el-main>
    <!-- Footer区域 -->
    <Footer/>
  </div>
</template>


<script setup>
import Footer from "@/components/Footer.vue";
import Header from "@/components/Header.vue";
import SideBar from "@/components/SideBar.vue";
import BreadCrumb from "@/components/BreadCrumb.vue";
import {RouterView} from 'vue-router'


</script>

<style scoped>
/* 页面背景 */
.page {
  background-color: #eeeeee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* 容器限制宽度 */
.container {
  width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Main 内容区域 */
.main {
  flex: 1;
}

.main-content {
  width: 100%;
  margin: 0 auto;
}

/* 主内容 + 侧边栏 */
.content {
  display: flex;
  gap: 20px; /* 主栏和侧栏之间的间距 */
}

</style>